package cn.honqun.tinycms.domain.vo;

import cn.honqun.tinycms.domain.entity.Role;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Getter
@Setter
public class RoleVO extends Role {
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "角色标识")
    @NotEmpty(message = "角色标识是必须的")
    @Size(max = 30, message = "角色标识最多30字符")
    private String role;

    @Schema(description = "角色名称")
    @Size(max = 100, message = "角色名称最多100字符")
    private String name;
}
